/**
 * useContext
 *
 *    语法：
 *      const value = useContext(Context)
 */

import { createContext, useContext } from "react";

const ColorContext = createContext("red");

export default function App() {
  const value = useContext(ColorContext);

  return <div>App - {value}</div>;
}
